package org.jeecg.glr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 网关管理
 * @Author: jeecg-boot
 * @Date:   2020-03-05
 * @Version: V1.0
 */
@Data
@TableName("glr_gateway")
public class GlrGateway implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**主键*/
	@TableId(type = IdType.UUID)
    private String id;
	/**工作状态*/
	@Excel(name = "工作状态", width = 15)
    private String currentWorkStatus;
	/**手机号*/
	@Excel(name = "手机号", width = 15)
    private String phoneNumber;
	/**手机卡类型*/
	@Excel(name = "手机卡类型", width = 15)
    @Dict(dicCode = "glr_phone_type")
    private String phoneType;
	/**网关型号*/
	@Excel(name = "网关型号", width = 15)
    @Dict(dicCode = "glr_gateway_model")
    private String gatewayModel;
	/**网关类型*/
	@Excel(name = "网关类型", width = 15)
    @Dict(dicCode = "glr_gateway_type")
    private String gatewayType;
	/**所属路灯灯杆编号*/
	@Excel(name = "所属路灯灯杆编号", width = 15)
	private String lightPoleCode;
	/**
	 * 项目编号
	 */
	@Excel(name = "项目编号", width = 15)
	private String projectCode;
	/**经度*/
	@Excel(name = "经度", width = 15)
    private String longitude;
	/**纬度*/
	@Excel(name = "纬度", width = 15)
    private String latitude;
	/**网关名称*/
	@Excel(name = "网关名称", width = 15)
    private String gatewayName;
	/**网关编号*/
	@Excel(name = "网关编号", width = 15)
    private String gateWayCode;
	/**所属公司*/
	@Excel(name = "所属公司", width = 15)
    private String sysCompanyCode;
	/**分控数量*/
	@Excel(name = "分控数量", width = 15)
    private Integer controlNumber;
	/**控制模式*/
	@Excel(name = "控制模式", width = 15)
    private String controlModel;
	/**当前时段*/
	@Excel(name = "当前时段", width = 15)
    private String currentPeriod;
	/**调光值*/
	@Excel(name = "调光值", width = 15)
    private Integer dimmingValue;
	/**开关状态*/
	@Excel(name = "开关状态", width = 15)
    private String switchingState;
	/**主控温度*/
	@Excel(name = "主控温度", width = 15)
    private Double temperature;
	/**湿度*/
	@Excel(name = "湿度", width = 15)
    private Double humidity;
	/**A相电压*/
	@Excel(name = "A相电压", width = 15)
    private Double voltageA;
	/**B相电压*/
	@Excel(name = "B相电压", width = 15)
    private Double voltageB;
	/**C相电压*/
	@Excel(name = "C相电压", width = 15)
    private Double voltageC;
	/**A相电流*/
	@Excel(name = "A相电流", width = 15)
    private Double currentA;
	/**B相电流*/
	@Excel(name = "B相电流", width = 15)
    private Double currentB;
	/**C相电流*/
	@Excel(name = "C相电流", width = 15)
    private String currentC;
	/**光照度*/
	@Excel(name = "光照度", width = 15)
    private Double illuminance;
	/**主线断电*/
	@Excel(name = "主线断电", width = 15)
    private String outage;
	/**反馈信息*/
	@Excel(name = "反馈信息", width = 15)
    private String signalValue;
	/**电池电压*/
	@Excel(name = "电池电压", width = 15)
    private Double cellVoltage;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    private String createBy;
	/**创建日期*/
	@Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    private String updateBy;
	/**更新日期*/
	@Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15)
    private String sysOrgCode;
    @TableField(exist = false)
	private String gateWayCodes;
	@TableField(exist = false)
    private Integer brightValue;

	@TableField(exist = false)
	private String gateWay0301;

}
